
package cn.edu.scau.cmi.hombio.dao;

import cn.edu.scau.cmi.hombio.domain.Pigsty;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage Pigsty entities.
 * 
 */
public interface PigstyDAO extends JpaDao<Pigsty> {

	/**
	 * JPQL Query - findPigstyByNumber
	 *
	 */
	public Set<Pigsty> findPigstyByNumber(Integer number) throws DataAccessException;

	/**
	 * JPQL Query - findPigstyByNumber
	 *
	 */
	public Set<Pigsty> findPigstyByNumber(Integer number, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigstyById
	 *
	 */
	public Pigsty findPigstyById(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findPigstyById
	 *
	 */
	public Pigsty findPigstyById(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigstyByCapacity
	 *
	 */
	public Set<Pigsty> findPigstyByCapacity(Integer capacity) throws DataAccessException;

	/**
	 * JPQL Query - findPigstyByCapacity
	 *
	 */
	public Set<Pigsty> findPigstyByCapacity(Integer capacity, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigstyByMemoContaining
	 *
	 */
	public Set<Pigsty> findPigstyByMemoContaining(String memo) throws DataAccessException;

	/**
	 * JPQL Query - findPigstyByMemoContaining
	 *
	 */
	public Set<Pigsty> findPigstyByMemoContaining(String memo, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigstyByMemo
	 *
	 */
	public Set<Pigsty> findPigstyByMemo(String memo_1) throws DataAccessException;

	/**
	 * JPQL Query - findPigstyByMemo
	 *
	 */
	public Set<Pigsty> findPigstyByMemo(String memo_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllPigstys
	 *
	 */
	public Set<Pigsty> findAllPigstys() throws DataAccessException;

	/**
	 * JPQL Query - findAllPigstys
	 *
	 */
	public Set<Pigsty> findAllPigstys(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigstyByPrimaryKey
	 *
	 */
	public Pigsty findPigstyByPrimaryKey(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findPigstyByPrimaryKey
	 *
	 */
	public Pigsty findPigstyByPrimaryKey(Integer id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigstyByRfid
	 *
	 */
	public Set<Pigsty> findPigstyByRfid(String rfid) throws DataAccessException;

	/**
	 * JPQL Query - findPigstyByRfid
	 *
	 */
	public Set<Pigsty> findPigstyByRfid(String rfid, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigstyByRfidContaining
	 *
	 */
	public Set<Pigsty> findPigstyByRfidContaining(String rfid_1) throws DataAccessException;

	/**
	 * JPQL Query - findPigstyByRfidContaining
	 *
	 */
	public Set<Pigsty> findPigstyByRfidContaining(String rfid_1, int startResult, int maxRows) throws DataAccessException;

}